"use strict";(self.webpackChunkpromptmanager=self.webpackChunkpromptmanager||[]).push([[68],{20068:function(e,o,t){t.d(o,{Z:function(){return B}});var r=t(29439),n=t(4942),i=t(63366),a=t(87462),p=t(72791),l=t(28182),c=t(94419),u=t(90183),s=t(12065),m=t(66934),d=t(13967),f=t(31402),v=t(14036),h=t(13208),g=t(68610),Z=t(89683),T=t(42071),b=t(67384),w=t(68221),y=t(98278),x=t(75878),R=t(21217);function P(e){return(0,R.Z)("MuiTooltip",e)}var M=(0,x.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),C=t(80184),L=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];var S=(0,m.ZP)(g.Z,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,o){var t=e.ownerState;return[o.popper,!t.disableInteractive&&o.popperInteractive,t.arrow&&o.popperArrow,!t.open&&o.popperClose]}})((function(e){var o,t=e.theme,r=e.ownerState,i=e.open;return(0,a.Z)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},r.arrow&&(o={},(0,n.Z)(o,'&[data-popper-placement*="bottom"] .'.concat(M.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,n.Z)(o,'&[data-popper-placement*="top"] .'.concat(M.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,n.Z)(o,'&[data-popper-placement*="right"] .'.concat(M.arrow),(0,a.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,n.Z)(o,'&[data-popper-placement*="left"] .'.concat(M.arrow),(0,a.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),o))})),k=(0,m.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,o){var t=e.ownerState;return[o.tooltip,t.touch&&o.touch,t.arrow&&o.tooltipArrow,o["tooltipPlacement".concat((0,v.Z)(t.placement.split("-")[0]))]]}})((function(e){var o,t,r=e.theme,i=e.ownerState;return(0,a.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,s.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},i.arrow&&{position:"relative",margin:0},i.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((t=16/14,Math.round(1e5*t)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},(o={},(0,n.Z)(o,".".concat(M.popper,'[data-popper-placement*="left"] &'),(0,a.Z)({transformOrigin:"right center"},i.isRtl?(0,a.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}):(0,a.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}))),(0,n.Z)(o,".".concat(M.popper,'[data-popper-placement*="right"] &'),(0,a.Z)({transformOrigin:"left center"},i.isRtl?(0,a.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}):(0,a.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}))),(0,n.Z)(o,".".concat(M.popper,'[data-popper-placement*="top"] &'),(0,a.Z)({transformOrigin:"center bottom",marginBottom:"14px"},i.touch&&{marginBottom:"24px"})),(0,n.Z)(o,".".concat(M.popper,'[data-popper-placement*="bottom"] &'),(0,a.Z)({transformOrigin:"center top",marginTop:"14px"},i.touch&&{marginTop:"24px"})),o))})),O=(0,m.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,o){return o.arrow}})((function(e){var o=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:o.vars?o.vars.palette.Tooltip.bg:(0,s.Fq)(o.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),E=!1,F=null,N={x:0,y:0};function I(e,o){return function(t){o&&o(t),e(t)}}var B=p.forwardRef((function(e,o){var t,n,s,m,x,R,M,B,D,W,A,j,z,U,H,q,V,X,Y,G=(0,f.Z)({props:e,name:"MuiTooltip"}),J=G.arrow,K=void 0!==J&&J,Q=G.children,$=G.components,_=void 0===$?{}:$,ee=G.componentsProps,oe=void 0===ee?{}:ee,te=G.describeChild,re=void 0!==te&&te,ne=G.disableFocusListener,ie=void 0!==ne&&ne,ae=G.disableHoverListener,pe=void 0!==ae&&ae,le=G.disableInteractive,ce=void 0!==le&&le,ue=G.disableTouchListener,se=void 0!==ue&&ue,me=G.enterDelay,de=void 0===me?100:me,fe=G.enterNextDelay,ve=void 0===fe?0:fe,he=G.enterTouchDelay,ge=void 0===he?700:he,Ze=G.followCursor,Te=void 0!==Ze&&Ze,be=G.id,we=G.leaveDelay,ye=void 0===we?0:we,xe=G.leaveTouchDelay,Re=void 0===xe?1500:xe,Pe=G.onClose,Me=G.onOpen,Ce=G.open,Le=G.placement,Se=void 0===Le?"bottom":Le,ke=G.PopperComponent,Oe=G.PopperProps,Ee=void 0===Oe?{}:Oe,Fe=G.slotProps,Ne=void 0===Fe?{}:Fe,Ie=G.slots,Be=void 0===Ie?{}:Ie,De=G.title,We=G.TransitionComponent,Ae=void 0===We?h.Z:We,je=G.TransitionProps,ze=(0,i.Z)(G,L),Ue=(0,d.Z)(),He="rtl"===Ue.direction,qe=p.useState(),Ve=(0,r.Z)(qe,2),Xe=Ve[0],Ye=Ve[1],Ge=p.useState(null),Je=(0,r.Z)(Ge,2),Ke=Je[0],Qe=Je[1],$e=p.useRef(!1),_e=ce||Te,eo=p.useRef(),oo=p.useRef(),to=p.useRef(),ro=p.useRef(),no=(0,y.Z)({controlled:Ce,default:!1,name:"Tooltip",state:"open"}),io=(0,r.Z)(no,2),ao=io[0],po=io[1],lo=ao,co=(0,b.Z)(be),uo=p.useRef(),so=p.useCallback((function(){void 0!==uo.current&&(document.body.style.WebkitUserSelect=uo.current,uo.current=void 0),clearTimeout(ro.current)}),[]);p.useEffect((function(){return function(){clearTimeout(eo.current),clearTimeout(oo.current),clearTimeout(to.current),so()}}),[so]);var mo=function(e){clearTimeout(F),E=!0,po(!0),Me&&!lo&&Me(e)},fo=(0,Z.Z)((function(e){clearTimeout(F),F=setTimeout((function(){E=!1}),800+ye),po(!1),Pe&&lo&&Pe(e),clearTimeout(eo.current),eo.current=setTimeout((function(){$e.current=!1}),Ue.transitions.duration.shortest)})),vo=function(e){$e.current&&"touchstart"!==e.type||(Xe&&Xe.removeAttribute("title"),clearTimeout(oo.current),clearTimeout(to.current),de||E&&ve?oo.current=setTimeout((function(){mo(e)}),E?ve:de):mo(e))},ho=function(e){clearTimeout(oo.current),clearTimeout(to.current),to.current=setTimeout((function(){fo(e)}),ye)},go=(0,w.Z)(),Zo=go.isFocusVisibleRef,To=go.onBlur,bo=go.onFocus,wo=go.ref,yo=p.useState(!1),xo=(0,r.Z)(yo,2)[1],Ro=function(e){To(e),!1===Zo.current&&(xo(!1),ho(e))},Po=function(e){Xe||Ye(e.currentTarget),bo(e),!0===Zo.current&&(xo(!0),vo(e))},Mo=function(e){$e.current=!0;var o=Q.props;o.onTouchStart&&o.onTouchStart(e)},Co=vo,Lo=ho;p.useEffect((function(){if(lo)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||fo(e)}}),[fo,lo]);var So=(0,T.Z)(Q.ref,wo,Ye,o);De||0===De||(lo=!1);var ko=p.useRef(),Oo={},Eo="string"===typeof De;re?(Oo.title=lo||!Eo||pe?null:De,Oo["aria-describedby"]=lo?co:null):(Oo["aria-label"]=Eo?De:null,Oo["aria-labelledby"]=lo&&!Eo?co:null);var Fo=(0,a.Z)({},Oo,ze,Q.props,{className:(0,l.Z)(ze.className,Q.props.className),onTouchStart:Mo,ref:So},Te?{onMouseMove:function(e){var o=Q.props;o.onMouseMove&&o.onMouseMove(e),N={x:e.clientX,y:e.clientY},ko.current&&ko.current.update()}}:{});var No={};se||(Fo.onTouchStart=function(e){Mo(e),clearTimeout(to.current),clearTimeout(eo.current),so(),uo.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ro.current=setTimeout((function(){document.body.style.WebkitUserSelect=uo.current,vo(e)}),ge)},Fo.onTouchEnd=function(e){Q.props.onTouchEnd&&Q.props.onTouchEnd(e),so(),clearTimeout(to.current),to.current=setTimeout((function(){fo(e)}),Re)}),pe||(Fo.onMouseOver=I(Co,Fo.onMouseOver),Fo.onMouseLeave=I(Lo,Fo.onMouseLeave),_e||(No.onMouseOver=Co,No.onMouseLeave=Lo)),ie||(Fo.onFocus=I(Po,Fo.onFocus),Fo.onBlur=I(Ro,Fo.onBlur),_e||(No.onFocus=Po,No.onBlur=Ro));var Io=p.useMemo((function(){var e,o=[{name:"arrow",enabled:Boolean(Ke),options:{element:Ke,padding:4}}];return null!=(e=Ee.popperOptions)&&e.modifiers&&(o=o.concat(Ee.popperOptions.modifiers)),(0,a.Z)({},Ee.popperOptions,{modifiers:o})}),[Ke,Ee]),Bo=(0,a.Z)({},G,{isRtl:He,arrow:K,disableInteractive:_e,placement:Se,PopperComponentProp:ke,touch:$e.current}),Do=function(e){var o=e.classes,t=e.disableInteractive,r=e.arrow,n=e.touch,i=e.placement,a={popper:["popper",!t&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",n&&"touch","tooltipPlacement".concat((0,v.Z)(i.split("-")[0]))],arrow:["arrow"]};return(0,c.Z)(a,P,o)}(Bo),Wo=null!=(t=null!=(n=Be.popper)?n:_.Popper)?t:S,Ao=null!=(s=null!=(m=null!=(x=Be.transition)?x:_.Transition)?m:Ae)?s:h.Z,jo=null!=(R=null!=(M=Be.tooltip)?M:_.Tooltip)?R:k,zo=null!=(B=null!=(D=Be.arrow)?D:_.Arrow)?B:O,Uo=(0,u.Z)(Wo,(0,a.Z)({},Ee,null!=(W=Ne.popper)?W:oe.popper,{className:(0,l.Z)(Do.popper,null==Ee?void 0:Ee.className,null==(A=null!=(j=Ne.popper)?j:oe.popper)?void 0:A.className)}),Bo),Ho=(0,u.Z)(Ao,(0,a.Z)({},je,null!=(z=Ne.transition)?z:oe.transition),Bo),qo=(0,u.Z)(jo,(0,a.Z)({},null!=(U=Ne.tooltip)?U:oe.tooltip,{className:(0,l.Z)(Do.tooltip,null==(H=null!=(q=Ne.tooltip)?q:oe.tooltip)?void 0:H.className)}),Bo),Vo=(0,u.Z)(zo,(0,a.Z)({},null!=(V=Ne.arrow)?V:oe.arrow,{className:(0,l.Z)(Do.arrow,null==(X=null!=(Y=Ne.arrow)?Y:oe.arrow)?void 0:X.className)}),Bo);return(0,C.jsxs)(p.Fragment,{children:[p.cloneElement(Q,Fo),(0,C.jsx)(Wo,(0,a.Z)({as:null!=ke?ke:g.Z,placement:Se,anchorEl:Te?{getBoundingClientRect:function(){return{top:N.y,left:N.x,right:N.x,bottom:N.y,width:0,height:0}}}:Xe,popperRef:ko,open:!!Xe&&lo,id:co,transition:!0},No,Uo,{popperOptions:Io,children:function(e){var o=e.TransitionProps;return(0,C.jsx)(Ao,(0,a.Z)({timeout:Ue.transitions.duration.shorter},o,Ho,{children:(0,C.jsxs)(jo,(0,a.Z)({},qo,{children:[De,K?(0,C.jsx)(zo,(0,a.Z)({},Vo,{ref:Qe})):null]}))}))}}))]})}))}}]);
//# sourceMappingURL=68.0e51dc20.chunk.js.map